<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?php use_helper('I18N') ?>
<head>
<?php include_http_metas() ?>
<?php include_metas() ?>
<meta name="Distribution" content="Global" />
<meta name="Author" content="Begur Holidays" />
<meta name="Robots" content="index,follow" />
<title><?php echo __('Location') ?> | <?php echo __('FindYourResidence') ?> | Begur Holidays</title>
</head>

<body>
<!-- wrap starts here -->
<div id="wrap">
	<div id="header"><div id="header-content">	
		<h1><?php echo link_to(__("WebTitle"), '@homepage', array('id'=>'logo')) ?></h1>
		<h2 id="slogan"><?php echo __("slogan") ?></h2>		
		<?php $routeName = sfContext::getInstance()->getRouting()->getCurrentRouteName() ?>
		<ul id="header_flags_ul">
			<li><?php echo link_to(image_tag('/images/flag_ca.png'), '/ca/cercador', 'class=header_flags') ?></li>
			<li><?php echo link_to(image_tag('/images/flag_es.png'), '/es/buscador', 'class=header_flags') ?></li>
			<li><?php echo link_to(image_tag('/images/flag_en.png'), '/en/searcher', 'class=header_flags') ?></li>
			<li><?php echo link_to(image_tag('/images/flag_nl.png'), '/nl/zoeker', 'class=header_flags') ?></li>
			<li><?php echo link_to(image_tag('/images/flag_fr.png'), '/fr/chercheur', 'class=header_flags') ?></li>
			<li><?php echo link_to(image_tag('/images/flag_de.png'), '/de/sucher', 'class=header_flags') ?></li>
		</ul>
		<!-- Menu Tabs -->
		<ul>
			<li><?php echo link_to(__("Home"), '@homepage') ?></li>
			<?php if(strpos($routeName, 'searcher')!==false || strpos($routeName, 'appartements_')!==false || strpos($routeName, 'maisons_avec_piscine_')!==false): ?>
			<li><?php echo link_to(__("Location"), '@searcher_'.$sf_user->getLangCulture(), array('id'=>'current')) ?></li>
			<?php else: ?>
			<li><?php echo link_to(__("Location"), '@searcher_'.$sf_user->getLangCulture()) ?></li>
			<?php endif ?>
			<?php if(sfConfig::get('app_pestana_ofertas')): ?>
				<li><?php echo link_to(__("Ofertas"), '@ofertas_'.$sf_user->getLangCulture()) ?></li>
			<?php endif ?>
			<li><?php echo link_to('Begur', '@begur_'.$sf_user->getLangCulture()) ?></li>
			<li><?php echo link_to(__("WhoWeAre"), '@aboutus_'.$sf_user->getLangCulture()) ?></li>
		</ul>		
	</div>
</div>
	
	<!-- content-wrap starts here -->
	<div id="content-wrap">
		<div id="content">		
				
		<?php echo $sf_content ?>
		<!-- content-wrap ends here -->		

		<!-- footer starts here -->	
		<?php include_partial('global/footer') ?>	
		<!-- footer ends here -->
		
	<!-- wrap ends here -->
		</div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<?php include_partial('global/ga') ?>
</body>
</html>
